package com.itheima.d1_exception;

public class Student extends Exception{
    private String name;
    private  int age;
    private  double price;


    public Student() {
    }

    public Student(String name, int age, double price) {
        this.name = name;
        this.age = age;
        this.price = price;
    }

    public Student(String message, String name, int age, double price) {
        super(message);
        this.name = name;
        this.age = age;
        this.price = price;
    }

    public Student(String message, Throwable cause, String name, int age, double price) {
        super(message, cause);
        this.name = name;
        this.age = age;
        this.price = price;
    }

    public Student(Throwable cause, String name, int age, double price) {
        super(cause);
        this.name = name;
        this.age = age;
        this.price = price;
    }

    public Student(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String name, int age, double price) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.name = name;
        this.age = age;
        this.price = price;
    }

    public Student(String message) {
        super(message);
    }

    public Student(String message, Throwable cause) {
        super(message, cause);
    }

    public Student(Throwable cause) {
        super(cause);
    }

    public Student(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}

